import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/page/home'
import honey_dept from "../components/page/views/honey_dept"
import honey_service from "../components/page/views/honey_service"
import honey_relation from "../components/page/views/honey_relation"

Vue.use(Router)
export default new Router({
    hashbang: true,
    history: false,//这个参数改为false就可以了
    saveScrollPosition: true,
    suppressTransitionError: true,
    routes: [
        {
            path: "/",
            component: Home,
            children: [
                {
                    path: "/",
                    component: honey_dept
                },
                {
                    path: "/honey_dept",
                    component: honey_dept
                },
                {
                    path: "/honey_service",
                    component: honey_service
                },
                {
                    path: "/honey_relation",
                    component: honey_relation
                },
            ]
        },
    ]
});
